package com.whfc.ms.api.energy.service.impl;

import com.whfc.common.exception.BizException;
import com.whfc.env.entity.EnergyWaterData;
import com.whfc.env.service.EnergyWaterDataService;
import com.whfc.ms.api.energy.service.MsEnergyWaterDataService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class MsEnergyWaterDataServiceImpl implements MsEnergyWaterDataService {

    @DubboReference(interfaceClass = EnergyWaterDataService.class, version = "1.0.0")
    private EnergyWaterDataService energyWaterDataService;

    @Override
    public EnergyWaterData detailByTime(Integer deviceId, Date time) throws BizException {
        return energyWaterDataService.detailByTime(deviceId,time);
    }
}
